package STUDENT.TRANVIETHOANG.OOPs.Songaytrongthang;

import java.util.Scanner;

public class View {
	public static void main(String[] args) {
		Scanner sc;
		NgayThang a = new NgayThang();
		
		System.out.println("Nhap Thang:");
		sc = new Scanner(System.in);
		a.setThang(sc.nextInt());
		a.getThang();
		
			if(a.getThang()>=13||a.getThang()<=0)
				{System.out.println("Error");
			return;
				}
		
		System.out.println("Nhap Nam:");
		sc = new Scanner(System.in);
		a.setNam(sc.nextInt());
		
		Controller dk = new Controller();
		System.out.println("Thang"+a.getThang()+"Nam"+a.getNam()+"co"+dk.tinhngay(a)+"ngay");
	}
}
